package com.dearbinge.data.pojo.comment.vo;

import com.baomidou.mybatisplus.plugins.Page;
import com.dearbinge.utils.Base64Util;
import io.swagger.annotations.ApiModelProperty;

import java.io.Serializable;
import java.util.Date;

/**
 * 返回评论的和回复集的bean
 *
 * @author wes
 * @date 2019/1/24
 */
public class CommentVO implements Serializable {

    /**
     * 评论ID
     */
    @ApiModelProperty(value = "评论id")
    private Integer commentId;

    /**
     * 实体ID（对应的信息表ID）
     */
    @ApiModelProperty(value = "实体ID（对应的信息表ID）")
    private String tableId;

    /**
     * 类型（1：生活  2：商品  3：秀场）
     */
    @ApiModelProperty(value = "类型（1：生活  2：商品  3：秀场）")
    private Integer tableType;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 评论内容
     */
    @ApiModelProperty(value = "评论内容")
    private String content;

    /**
     * 用户ID
     */
    @ApiModelProperty(value = "用户ID")
    private String userId;

    /**
     * 用户名字
     */
    @ApiModelProperty(value = "用户名字")
    private String userName;

    /**
     * 用户头像
     */
    @ApiModelProperty(value = "用户头像")
    private String headImg;

    /**
     * 是否点赞
     */
    @ApiModelProperty(value = "是否点赞")
    private Boolean thumbs;

    /**
     * 点赞数
     */
    @ApiModelProperty(value = "点赞数")
    private Integer thumbsCount;

    /**
     * 回复集
     */
    @ApiModelProperty("回复集")
    private Page replyResultList;

    public Page getReplyResultList() {
        return replyResultList;
    }

    public void setReplyResultList(Page replyResultList) {
        this.replyResultList = replyResultList;
    }

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getHeadImg() {
        return headImg;
    }

    public void setHeadImg(String headImg) {
        this.headImg = headImg;
    }

    public Boolean getThumbs() {
        return thumbs;
    }

    public void setThumbs(Boolean thumbs) {
        this.thumbs = thumbs;
    }

    public Integer getThumbsCount() {
        return thumbsCount;
    }

    public void setThumbsCount(Integer thumbsCount) {
        this.thumbsCount = thumbsCount;
    }

    public String getTableId() {
        return tableId;
    }

    public void setTableId(String tableId) {
        this.tableId = tableId;
    }

    public Integer getTableType() {
        return tableType;
    }

    public void setTableType(Integer tableType) {
        this.tableType = tableType;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = Base64Util.decodeData(String.valueOf(userName));
    }

    @Override
    public String toString() {
        return "CommentVO{" +
                "commentId=" + commentId +
                ", tableId='" + tableId + '\'' +
                ", tableType=" + tableType +
                ", createTime=" + createTime +
                ", content='" + content + '\'' +
                ", userId='" + userId + '\'' +
                ", userName='" + userName + '\'' +
                ", headImg='" + headImg + '\'' +
                ", thumbs=" + thumbs +
                ", thumbsCount=" + thumbsCount +
                '}';
    }
}
